/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tongxunlu;

import java.io.Serializable;

/**
 *
 * @author Tim
 */
public class person implements Serializable{
   private String NAME;
   private String TEL;
   private String EMAIL;
   private String BIR;
   private String GROUP;
   private String REMARKS; /*备注*/
   private String PHOTOADD;/*照片的地址*/
   private workmassage WORKMASSAGE;
   private netmassage NETMASSAGE;
   private homemassage HOMEMASSAGE;

    public person() {
        this.NAME = "";
        this.TEL = "";
        this.EMAIL = "";
        this.BIR = "";
        this.GROUP = "";
        this.REMARKS = "";
        this.PHOTOADD = "";
        this.WORKMASSAGE = new workmassage();
        this.NETMASSAGE = new netmassage();
        this.HOMEMASSAGE = new homemassage();
    }

    public person(String NAME, String TEL, String EMAIL, String BIR, String GROUP, String REMARKS, String PHOTOADD, workmassage WORKMASSAGE, netmassage NETMASSAGE, homemassage HOMEMASSAGE) {
        this.NAME = NAME;
        this.TEL = TEL;
        this.EMAIL = EMAIL;
        this.BIR = BIR;
        this.GROUP = GROUP;
        this.REMARKS = REMARKS;
        this.PHOTOADD = PHOTOADD;
        this.WORKMASSAGE = WORKMASSAGE;
        this.NETMASSAGE = NETMASSAGE;
        this.HOMEMASSAGE = HOMEMASSAGE;
    }
    public boolean equels(person p){
        if(this.getNAME().equals(p.getNAME()) && this.getBIR().equals(p.getBIR()) && this.getTEL().equals(p.getTEL()))
            return true;
        return false;
    }
    public void setBIR(String BIR) {
        this.BIR = BIR;
    }

    public void setEMAIL(String EMAIL) {
        this.EMAIL = EMAIL;
    }

    public void setGROUP(String GROUP) {
        this.GROUP = GROUP;
    }

    public void setHOMEMASSAGE(homemassage HOMEMASSAGE) {
        this.HOMEMASSAGE = HOMEMASSAGE;
    }

    public void setNAME(String NAME) {
        this.NAME = NAME;
    }

    public void setNETMASSAGE(netmassage NETMASSAGE) {
        this.NETMASSAGE = NETMASSAGE;
    }

    public void setPHOTOADD(String PHOTOADD) {
        this.PHOTOADD = PHOTOADD;
    }

    public void setREMARKS(String REMARKS) {
        this.REMARKS = REMARKS;
    }

    public void setTEL(String TEL) {
        this.TEL = TEL;
    }

    public void setWORKMASSAGE(workmassage WORKMASSAGE) {
        this.WORKMASSAGE = WORKMASSAGE;
    }

    public String getBIR() {
        return BIR;
    }

    public String getEMAIL() {
        return EMAIL;
    }

    public String getGROUP() {
        return GROUP;
    }

    public homemassage getHOMEMASSAGE() {
        return HOMEMASSAGE;
    }

    public String getNAME() {
        return NAME;
    }

    public netmassage getNETMASSAGE() {
        return NETMASSAGE;
    }

    public String getPHOTOADD() {
        return PHOTOADD;
    }

    public String getREMARKS() {
        return REMARKS;
    }

    public String getTEL() {
        return TEL;
    }

    public workmassage getWORKMASSAGE() {
        return WORKMASSAGE;
    }
    
    public boolean isEmpty(){
        if(this.NAME.isEmpty()&&this.TEL.isEmpty()&&this.BIR.isEmpty()&&this.EMAIL.isEmpty()&&this.REMARKS.isEmpty()&&this.GROUP.isEmpty()&&this.HOMEMASSAGE.isEmpty()&&this.NETMASSAGE.isEmpty()&&this.WORKMASSAGE.isEmpty())
            return true;
        return false;
    }
   
}
